package com.zhangsun.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhangsun.system.entity.DepartmentEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 部门 Mapper 接口
 * </p>
 *
 * @author zhangsun
 * @since 2019-08-12
 */
public interface DepartmentMapper extends BaseMapper<DepartmentEntity> {

    /**
     * 获取用户部门
     *
     * @param userId 用户id
     * @return 部门
     */
    List<DepartmentEntity> findAllByUserId(@Param("userId") String userId);

}
